package com.penghaisoft.microwms.material.web.insidewarehouse.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import com.penghaisoft.microwms.common.dto.RawStorageDto;
import com.penghaisoft.microwms.common.dto.TransResult;
import com.penghaisoft.microwms.common.page.Pager;
import com.penghaisoft.microwms.common.wms.model.RawLockLog;
import com.penghaisoft.microwms.common.wms.model.RawStorage;
import com.penghaisoft.microwms.material.web.insidewarehouse.service.IMaterialInsideService;

import lombok.extern.slf4j.Slf4j;

import com.penghaisoft.microwms.common.controller.BaseController;


/** 
* @ClassName: InsideRawLockLogController 
* @Description: 原材料冻结解冻日志查询
* @author jzh
* @date 2018年5月23日 下午1:48:58  
*/
@RestController
@RequestMapping(value = "insidewarehouse/locklog")
@Slf4j
public class InsideRawLockLogController extends BaseController  {
	
	@Autowired
	private IMaterialInsideService iMaterialInsideService;
	
	
	@PostMapping("list")
	public TransResult list(@RequestParam(name = "page", defaultValue = "1") int page,
                            @RequestParam(name = "rows", defaultValue = "10") int rows, RawLockLog rawLockLog) {
		
		Pager<RawLockLog> result = iMaterialInsideService.findLockLogByCondition(page, rows, rawLockLog);
		return success(result);
	}
}
